package com.espirit.eap.sa;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import com.espirit.eap.ICheckModelDuplicateInfo;
import com.googlecode.cswish.model.Saas;

@Entity
public class Validation implements ICheckModelDuplicateInfo, Serializable, Saas {

	private static final long serialVersionUID = 4016433429907532972L;

	private final static String[] gatherProperties = new String[] {"action+field+validCondition"};

	private Integer id;
	
	private String action;
	
	private String field;
	
	private String validCondition;
	
	private Boolean enable;
	
	private String remark;

	private Integer sid;
	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	@Column(length=5000)
	public String getValidCondition() {
		return validCondition;
	}

	public void setValidCondition(String condition) {
		this.validCondition = condition;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	@Override
	public String[] gatherProperties() {
		return gatherProperties;
	}

	
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
